home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global partnum, chib, changer, takeinput, castnumber, buglist
- set takeinput to 0
- repeat with xxx = 1 to 48
- puppetSprite(xxx, 0)
- end repeat
- set changer to EMPTY
- set partnum to 1
- repeat with xxx = 0 to 5
- puppetSprite(22 + (2 * xxx), 1)
- set the castNum of sprite (22 + (2 * xxx)) to getAt(castnumber, 12)
- set the castNum of sprite (21 + (2 * xxx)) to getAt(castnumber, 11)
- end repeat
- updateStage()
- if count(buglist) < 2 then
- set buglist to [1, 2, 3, 4, 5, 6, 7]
- end if
- set chib to random(count(buglist))
- getAt(buglist, chib)
- deleteAt(buglist, chib)
- if ramNeeded(marker("bug" & chib), marker("bugs" & chib)) > the freeBytes then
- unLoadCast("Tall box 1", "bug9.4.6")
- end if
- go("bug" & chib)
- end
-